
export default {
  methods: {
    value2name (type, value) {
      for (let code of this.dictionary()[type]) {
        if (code.dataValue === value) return code.dataName
      }
      return ''
    },
    dictionary () {
      return this.$store.getters['dictionary/dictionarys']
    }
  }
}
